package com.hkpw.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkpw.common.annotation.Excel;
import com.hkpw.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 人脸中间库同步记录对象 t_face_middle_record
 * 
 * @author andy
 * @date 2022-10-12
 */
public class FaceMiddleRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人员id */
    private String personId;

    /** 工号（学号） */
    @Excel(name = "工号", readConverterExp = "学=号")
    private String jobNo;

    /** 人脸照片路径 */
    @Excel(name = "人脸照片路径")
    private String facePath;

    /** 同步状态 */
    @Excel(name = "同步状态")
    private String syncStatu;

    /** 上次同步时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上次同步时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date syncTime;

    /** 同步结果 */
    @Excel(name = "同步结果")
    private String result;

    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setJobNo(String jobNo) 
    {
        this.jobNo = jobNo;
    }

    public String getJobNo() 
    {
        return jobNo;
    }
    public void setFacePath(String facePath) 
    {
        this.facePath = facePath;
    }

    public String getFacePath() 
    {
        return facePath;
    }
    public void setSyncStatu(String syncStatu) 
    {
        this.syncStatu = syncStatu;
    }

    public String getSyncStatu() 
    {
        return syncStatu;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("personId", getPersonId())
            .append("jobNo", getJobNo())
            .append("facePath", getFacePath())
            .append("createTime", getCreateTime())
            .append("syncStatu", getSyncStatu())
            .append("syncTime", getSyncTime())
            .append("result", getResult())
            .toString();
    }
}
